<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        margin: 0;
        padding: 0;
      }

      .main {
        width: 100%;
        /* height: 3000px; */
        background-color: beige;
      }

      .head {
        width: 100%;
        height: 200px;
        background-color: skyblue;
      }

      .head-sticky {
        width: 100%;
        height: 150px;
        background-color: hotpink;
        position: sticky;
        top: 0;
        z-index: 1;
      }

      .contennt {
        width: 100%;
        height: 2000px;
        margin: 10px auto;
        background-color: azure;
      }

      .left {
        width: 40%;
        height: 600px;
        float: left;
        background-color: skyblue;
        position: sticky;
        top: 150px;
        margin: 30px 5%;
      }

      .right {
        width: 40%;
        height: 2000px;
        float: right;
        /* background-color: brown; */
        margin: 0 5%;
      }

      .right .right-item {
        height: 200px;
        margin: 30px 0px;
      }

      /* 偶数项背景色 */
      .right .right-item:nth-child(even) {
        background-color: pink;
      }
      /* 奇数项背景色 */
      .right .right-item:nth-child(odd) {
        background-color: skyblue;
      }

      .clearfix::after {
        content: "";
        clear: both;
        display: block;
      }
    </style>
  </head>
  <body>
    <div class="main">
      <div class="head"></div>
      <div class="head-sticky"></div>

      <div class="content clearfix">
        <div class="left"></div>
        <div class="right">
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
          <div class="right-item"></div>
        </div>
      </div>
    </div>
  </body>
</html>
